﻿using RFID.BLL;
using System;

namespace RFID.PC.AppCenter
{
    public partial class ListRichForm : ChildForm
    {
        public ListRichForm(MainForm main, object sender)
            : base(main, sender)
        {
            InitializeComponent();
            Text = Title;
        }

        private void TxtCard_DoubleClick(object sender, EventArgs e)
        {
            GetTagIdByDoubleClick(sender);
        }

        private void ListRichForm_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = RichInfoBLL.Select();
        }

        private void Button1_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = RichInfoBLL.Select(txtKey.Text);
        }
    }
}
